class A:
    def test(self):
        print('A')

class B:
    def test(self):
        print('B')

class C(A,B):
    pass

if __name__ == '__main__':
    c = C()
    c.test()
    print(C.__mro__) #通过打印mro来查看寻找顺序

